<template>
  <div class="head">
    <span class="tit">轩逸</span>
    <div class="search">
      <span class="iconfont search icon-icon-test2"></span>
      <input type="text" placeholder="请输入商品名称" />
      <span class="iconfont icon-saoma"></span>
    </div>
    <span class="iconfont notification icon-icon-test8 msg"></span>
  </div>
</template>

<script>
export default {
  name: "search"
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
.head {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 1.333333rem;
  background: rgba(170, 161, 161, 0.8);
  .tit {
    width: 0.48rem;
    font-size: 0.48rem;
    color: white;
    font-weight: bold;
  }
  .search {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 8rem;
    height: 1.066667rem;
    background: white;
    line-height: 1.066667rem;
    border: 1px solid white;
    border-radius: 0.533333rem;
    span {
      width: 0.666667rem;
      height: 0.666667rem;
      font-size: 0.533333rem;
      line-height: 0.533333rem;
      border: none;
      margin-left: 0.213333rem;
    }

    input {
      outline: none;
      -webkit-appearance: none;
      /*去除系统默认的样式*/
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
      /* 点击高亮的颜色 */
      border: none;
      margin-left: 0.2rem;
      width: 100%;
      height: 0.8rem;
      line-height: 0.8rem;
      margin-top: 0.04rem;
    }
    .icon-saoma {
      padding-right: 0.213333rem;
      padding-top: 0.213333rem;
    }
  }
  .msg {
    font-size: 0.533333rem;
  }
}
</style>
